import http from "@/utils/index";

/**
 * 分页
 * @param param
 * @returns {*}
 */
export function pager(param = {}) {
    return http.post("api/lgs/map/components/pager", param)
}

/**
 * 查询详细
 * @param id
 * @returns {*}
 */
export function details(id) {
    return http.get("api/lgs/map/components/agvDetail/" + id);
}

/**
 * 保存
 * @param param
 * @returns {*}
 */
export function save(param = {}) {
    return http.put("api/lgs/map/components/saveAgv", param);
}

/**
 * 删除
 * @param ids
 * @returns {*}
 */
export function remove(ids) {
    return http.delete("api/lgs/map/components/remove/"+ids)
}